﻿using System.Data;
using ECM7.Migrator.Framework;

namespace music.domain.Migrations
{
	[Migration(3)]
	public class Migration003_DownloadCountAndDescription : Migration
	{
		public override void Apply()
		{
			Database.AddColumn("Song", new Column("DownloadCount", DbType.Int32));
			Database.AddColumn("Song", new Column("Description", DbType.String.WithSize(1000)));
		}

		public override void Revert()
		{
			Database.RemoveColumn("Song", "Description");
			Database.RemoveColumn("Song", "DownloadCount");
		}
	}
}